package com.tairanchina.md.meeting.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class YearMeetingTreeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public YearMeetingTreeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_tree
     *
     * @mbggenerated Tue Jan 10 17:25:26 CST 2017
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(String value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(String value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(String value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(String value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(String value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(String value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLike(String value) {
            addCriterion("id like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotLike(String value) {
            addCriterion("id not like", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<String> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<String> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(String value1, String value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(String value1, String value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andTreeStateIsNull() {
            addCriterion("tree_state is null");
            return (Criteria) this;
        }

        public Criteria andTreeStateIsNotNull() {
            addCriterion("tree_state is not null");
            return (Criteria) this;
        }

        public Criteria andTreeStateEqualTo(Integer value) {
            addCriterion("tree_state =", value, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateNotEqualTo(Integer value) {
            addCriterion("tree_state <>", value, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateGreaterThan(Integer value) {
            addCriterion("tree_state >", value, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("tree_state >=", value, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateLessThan(Integer value) {
            addCriterion("tree_state <", value, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateLessThanOrEqualTo(Integer value) {
            addCriterion("tree_state <=", value, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateIn(List<Integer> values) {
            addCriterion("tree_state in", values, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateNotIn(List<Integer> values) {
            addCriterion("tree_state not in", values, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateBetween(Integer value1, Integer value2) {
            addCriterion("tree_state between", value1, value2, "treeState");
            return (Criteria) this;
        }

        public Criteria andTreeStateNotBetween(Integer value1, Integer value2) {
            addCriterion("tree_state not between", value1, value2, "treeState");
            return (Criteria) this;
        }

        public Criteria andStartStateIsNull() {
            addCriterion("start_state is null");
            return (Criteria) this;
        }

        public Criteria andStartStateIsNotNull() {
            addCriterion("start_state is not null");
            return (Criteria) this;
        }

        public Criteria andStartStateEqualTo(Integer value) {
            addCriterion("start_state =", value, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateNotEqualTo(Integer value) {
            addCriterion("start_state <>", value, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateGreaterThan(Integer value) {
            addCriterion("start_state >", value, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("start_state >=", value, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateLessThan(Integer value) {
            addCriterion("start_state <", value, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateLessThanOrEqualTo(Integer value) {
            addCriterion("start_state <=", value, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateIn(List<Integer> values) {
            addCriterion("start_state in", values, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateNotIn(List<Integer> values) {
            addCriterion("start_state not in", values, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateBetween(Integer value1, Integer value2) {
            addCriterion("start_state between", value1, value2, "startState");
            return (Criteria) this;
        }

        public Criteria andStartStateNotBetween(Integer value1, Integer value2) {
            addCriterion("start_state not between", value1, value2, "startState");
            return (Criteria) this;
        }

        public Criteria andEndStateIsNull() {
            addCriterion("end_state is null");
            return (Criteria) this;
        }

        public Criteria andEndStateIsNotNull() {
            addCriterion("end_state is not null");
            return (Criteria) this;
        }

        public Criteria andEndStateEqualTo(Integer value) {
            addCriterion("end_state =", value, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateNotEqualTo(Integer value) {
            addCriterion("end_state <>", value, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateGreaterThan(Integer value) {
            addCriterion("end_state >", value, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("end_state >=", value, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateLessThan(Integer value) {
            addCriterion("end_state <", value, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateLessThanOrEqualTo(Integer value) {
            addCriterion("end_state <=", value, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateIn(List<Integer> values) {
            addCriterion("end_state in", values, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateNotIn(List<Integer> values) {
            addCriterion("end_state not in", values, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateBetween(Integer value1, Integer value2) {
            addCriterion("end_state between", value1, value2, "endState");
            return (Criteria) this;
        }

        public Criteria andEndStateNotBetween(Integer value1, Integer value2) {
            addCriterion("end_state not between", value1, value2, "endState");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeIsNull() {
            addCriterion("satrt_time is null");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeIsNotNull() {
            addCriterion("satrt_time is not null");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeEqualTo(Date value) {
            addCriterion("satrt_time =", value, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeNotEqualTo(Date value) {
            addCriterion("satrt_time <>", value, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeGreaterThan(Date value) {
            addCriterion("satrt_time >", value, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("satrt_time >=", value, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeLessThan(Date value) {
            addCriterion("satrt_time <", value, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeLessThanOrEqualTo(Date value) {
            addCriterion("satrt_time <=", value, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeIn(List<Date> values) {
            addCriterion("satrt_time in", values, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeNotIn(List<Date> values) {
            addCriterion("satrt_time not in", values, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeBetween(Date value1, Date value2) {
            addCriterion("satrt_time between", value1, value2, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andSatrtTimeNotBetween(Date value1, Date value2) {
            addCriterion("satrt_time not between", value1, value2, "satrtTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNull() {
            addCriterion("end_time is null");
            return (Criteria) this;
        }

        public Criteria andEndTimeIsNotNull() {
            addCriterion("end_time is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimeEqualTo(Date value) {
            addCriterion("end_time =", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotEqualTo(Date value) {
            addCriterion("end_time <>", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThan(Date value) {
            addCriterion("end_time >", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("end_time >=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThan(Date value) {
            addCriterion("end_time <", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("end_time <=", value, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeIn(List<Date> values) {
            addCriterion("end_time in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotIn(List<Date> values) {
            addCriterion("end_time not in", values, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeBetween(Date value1, Date value2) {
            addCriterion("end_time between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("end_time not between", value1, value2, "endTime");
            return (Criteria) this;
        }

        public Criteria andSwitchStateIsNull() {
            addCriterion("switch_state is null");
            return (Criteria) this;
        }

        public Criteria andSwitchStateIsNotNull() {
            addCriterion("switch_state is not null");
            return (Criteria) this;
        }

        public Criteria andSwitchStateEqualTo(String value) {
            addCriterion("switch_state =", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateNotEqualTo(String value) {
            addCriterion("switch_state <>", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateGreaterThan(String value) {
            addCriterion("switch_state >", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateGreaterThanOrEqualTo(String value) {
            addCriterion("switch_state >=", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateLessThan(String value) {
            addCriterion("switch_state <", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateLessThanOrEqualTo(String value) {
            addCriterion("switch_state <=", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateLike(String value) {
            addCriterion("switch_state like", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateNotLike(String value) {
            addCriterion("switch_state not like", value, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateIn(List<String> values) {
            addCriterion("switch_state in", values, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateNotIn(List<String> values) {
            addCriterion("switch_state not in", values, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateBetween(String value1, String value2) {
            addCriterion("switch_state between", value1, value2, "switchState");
            return (Criteria) this;
        }

        public Criteria andSwitchStateNotBetween(String value1, String value2) {
            addCriterion("switch_state not between", value1, value2, "switchState");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeIsNull() {
            addCriterion("meeting_end_time is null");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeIsNotNull() {
            addCriterion("meeting_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeEqualTo(Date value) {
            addCriterion("meeting_end_time =", value, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeNotEqualTo(Date value) {
            addCriterion("meeting_end_time <>", value, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeGreaterThan(Date value) {
            addCriterion("meeting_end_time >", value, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("meeting_end_time >=", value, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeLessThan(Date value) {
            addCriterion("meeting_end_time <", value, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("meeting_end_time <=", value, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeIn(List<Date> values) {
            addCriterion("meeting_end_time in", values, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeNotIn(List<Date> values) {
            addCriterion("meeting_end_time not in", values, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeBetween(Date value1, Date value2) {
            addCriterion("meeting_end_time between", value1, value2, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("meeting_end_time not between", value1, value2, "meetingEndTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeIsNull() {
            addCriterion("meeting_start_time is null");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeIsNotNull() {
            addCriterion("meeting_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeEqualTo(Date value) {
            addCriterion("meeting_start_time =", value, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeNotEqualTo(Date value) {
            addCriterion("meeting_start_time <>", value, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeGreaterThan(Date value) {
            addCriterion("meeting_start_time >", value, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("meeting_start_time >=", value, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeLessThan(Date value) {
            addCriterion("meeting_start_time <", value, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("meeting_start_time <=", value, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeIn(List<Date> values) {
            addCriterion("meeting_start_time in", values, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeNotIn(List<Date> values) {
            addCriterion("meeting_start_time not in", values, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeBetween(Date value1, Date value2) {
            addCriterion("meeting_start_time between", value1, value2, "meetingStartTime");
            return (Criteria) this;
        }

        public Criteria andMeetingStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("meeting_start_time not between", value1, value2, "meetingStartTime");
            return (Criteria) this;
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_tree
     *
     * @mbggenerated do_not_delete_during_merge Tue Jan 10 17:25:26 CST 2017
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     * This class was generated by MyBatis Generator.
     * This class corresponds to the database table year_meeting_tree
     *
     * @mbggenerated Tue Jan 10 17:25:26 CST 2017
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}